//
//  YXDownloader.h
//  MockProject
//
//  Created by 周丽丽 on 16/8/29.
//  Copyright © 2016年 niuzhaowang. All rights reserved.
//

#import <ASIHTTPRequest/ASIHTTPRequest.h>
@class YXTaskListModel;
@interface YXDownloader : JSONModel
@property (nonatomic, copy) NSString<Optional> *urlStr;
@property (nonatomic, copy) NSString<Optional> *title;
@property (nonatomic, copy) NSString<Optional> *speed;
@property (nonatomic, assign) TaskState state;
@property (nonatomic, assign) float totalSize;
@property (nonatomic, assign) float downloadSize;
@property (nonatomic, assign) float downloadProgress;
@property (nonatomic, strong) YXTaskListModel<Optional> *taskModel;
+ (instancetype)downloader;
- (void)startDownload;
- (void)pauseDownload;
- (void)resumeDownload;
@end
